package com.sunyur.tailor.channel.service.inner.protocol.model;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * @ClassName GetProtocolFreightModel
 * @Description 获取协议运费信息返回实体
 * @Author hao.tian
 * @Date 2021/5/12
 * @Version v1.0
 */
@Data
public class GetProtocolFreightModel implements Serializable {


    private static final long serialVersionUID = 1711422848464362085L;
    /**
     * 协议id
     */
    private Long protocolId;

    /**
     *
     */
    private Object freightBindingMaterielCode;

    /**
     *
     */
    private List<ProtocolFreightRule> protocolFreightRule;
    @Data
    public static class ProtocolFreightRule implements  Serializable{

        private static final long serialVersionUID = 4419381470603172204L;

        /**
         * 城市
         */
        private List<CityList> cityList;
        @Data
        public static class CityList implements  Serializable{

            private static final long serialVersionUID = 2209642649975082369L;

            /**
             * 省编码
             */
            private String provinceCode;

            /**
             * 省名称
             */
            private String provinceName;

            /**
             * 城市编码
             */
            private String cityCode;

            /**
             * 城市名称
             */
            private String cityName;
        }

        /**
         * 包邮订单金额（元，小数点后2位）（有填写时下面行是必填，且大于0）
         */
        private BigDecimal packingOrderAmount;

        /**
         * 不包邮运费(元，小数点后2位)
         */
        private BigDecimal unPackingOrderAmount;

        /**
         * 阶梯下限，小数点后2位；订单金额起
         */
        private BigDecimal startStepOrderAmount;

        /**
         * 阶梯上限，小数点后2位；订单金额始
         */
        private BigDecimal endStepOrderAmount;

        /**
         * 税code
         */
        private String taxCode;

        /**
         * 运费税点，整个合同的运费使用一种税点
         */
        private BigDecimal taxPoint;

    }
}
